﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>知识发布</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <script src="components/requirejs/require.js" data-main="resources/js/knowledgePublish" async="async"></script>
    <link href="resources/css/common.css" rel="stylesheet" />
    <link href="components/mint-ui/style.min.css" rel="stylesheet" />
    <link href="resources/css/knowledgePublish.css" rel="stylesheet" />
</head>
<body>
    <div id="view">
        <div view v-if="isloading"></div>

        <div group>
            <div group-title>
                <div center>
                    <img src="resources/image/knowledgePublish/info.png" />
                </div>
                <div>
                    发布信息
                </div>
                <div center>
                    <div arrow-up></div>
                </div>
            </div>
            <div group-item>
                <div>
                    分类
                </div>
                <search title="知识分类" treeurl="/knowledge/category" v-model="kngKnowledgeCategory"></search>
            </div>
            <div group-item>
                <div>
                    标题
                </div>
                <div>
                    <input type="text" v-model="data.title" />
                </div>
            </div>
            <div group-item>
                <div>
                    关键字
                </div>
                <div>
                    <input type="text" v-model="data.keyword" />
                </div>
            </div>
        </div>

        <div group>
            <div group-title>
                <div center>
                    <img src="resources/image/knowledgePublish/contents.png" />
                </div>
                <div>
                    发布内容
                </div>
                <div center>
                    <div arrow-up></div>
                </div>
            </div>
            <div group-item>
                <textarea v-model="data.contents" placeholder="请输入发布内容..."></textarea>
            </div>
            <div upload center-v>
                <img v-for="item in images" v-bind:src="item.data" />
                <div file v-if="images.length < 3">
                    <input type="file" v-on:change="imgUpload($event)" />
                </div>
            </div>
        </div>

        <div group>
            <div group-title>
                <div center>
                    <img src="resources/image/knowledgePublish/right.png" />
                </div>
                <div>
                    发布权限
                </div>
                <div center>
                    <div arrow-up></div>
                </div>
            </div>
            <div group-item>
                <div>
                    权限
                </div>
                <div>
                    <select v-model="data.accessRight">
                        <option value="companyLevel">公司级</option>
                        <option value="public">公开</option>
                    </select>
                </div>
            </div>
        </div>

        <div placeholder-bottombar>
        </div>
        <div bottombar>
            <input type="button" blue value="提交" v-on:click="submit" />
        </div>
    </div>
</body>
</html>